﻿<%@ Page Language="C#"  EnableEventValidation="false" AutoEventWireup="true" CodeBehind="LeaveList.aspx.cs" Inherits="UI.ModSalesman.LeaveList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>退场列表</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            促销员退场表</div>
        <div class="pagetopright">
            工号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="65px"></asp:TextBox>
            日期<asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            至<asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
           
            <asp:DropDownList ID="ddlTimeType" runat="server" CssClass="InputCss">
                        <asp:ListItem Value="InputTime">录入时间</asp:ListItem>                                          
                        <asp:ListItem Value="LeaveTime">离职时间</asp:ListItem>  
                         <asp:ListItem Value="DayNum">移交日期</asp:ListItem>  
                         <asp:ListItem Value="BackAmountTime">退款时间</asp:ListItem>  
                           <asp:ListItem Value="JoinTime">入职日期</asp:ListItem>    
                                              
                    </asp:DropDownList>
            <asp:Button ID="btnEmSearch" runat="server" Text="查询" OnClick="btnEmSearch_Click"
                CssClass="ButtonCss" TabIndex="1" />
          
           <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" 
                OnClick="btnExcel_Click" TabIndex="3" />
           <asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss" 
                TabIndex="4" />
           
        </div>
    </div>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="LeaveID" Width="1200" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
        CellPadding="3" GridLines="Horizontal" OnRowDataBound="gvList_RowDataBound">
        <Columns>
            <asp:BoundField DataField="LeaveID" HeaderText="LeaveID" SortExpression="LeaveID">
            </asp:BoundField>
            <asp:TemplateField HeaderText="员工工号" SortExpression="EmpCode" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('LeaveAdd.aspx?LeaveID=<%# Eval("LeaveID")%>',800,550)">
                        <%# Eval("EmpCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="员工姓名" SortExpression="EmpName">
                <ItemTemplate>
                    <a href="javascript:ShowLink('LeaveAdd.aspx?LeaveID=<%# Eval("LeaveID")%>',800,550)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
             <asp:BoundField DataField="TypeName" HeaderText="在职类型" SortExpression="TypeName">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="DeptName" HeaderText="部门名称" SortExpression="DeptName">
                <ItemStyle Width="90px" />
            </asp:BoundField>
                <asp:BoundField DataField="DutyName" HeaderText="品牌" SortExpression="DutyName">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="FromCompanyName" HeaderText="供货厂商" SortExpression="FromCompanyName">
                <ItemStyle Width="180px" />
            </asp:BoundField>
           
            <asp:BoundField DataField="JoinTime" HeaderText="入职时间" DataFormatString="{0:d}" SortExpression="JoinTime">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="LeaveTime" HeaderText="离职时间" DataFormatString="{0:d}" SortExpression="LeaveTime">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackAmountTime" HeaderText="退款时间" DataFormatString="{0:d}" SortExpression="BackAmountTime">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="LeaveType" HeaderText="离职类型" SortExpression="LeaveType">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="DayNum" HeaderText="移交日期" SortExpression="DayNum">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="IsProcedure" HeaderText="移交" SortExpression="IsProcedure">
                <ItemStyle Width="60px" />
            </asp:BoundField>
            
            <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                <ItemStyle Width="120px" />
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
        <div id="divAmount" class="amountLine">
        共有记录数: <asp:Label ID="lbAmount" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
